Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TESTID-140 sidebar first test suite #9021

Open
wants to merge 82 commits into
base: cypress-unification
Choose a base branch
from

Conversation

silva-qa
Copy link
Contributor

@silva-qa silva-qa commented Dec 9, 2024

Description

  1. This PR implements the first and second test suites of TESTID-140, for index pattern and index.

Issues Resolved

  • Fixes a broken test on filter_for_value_spec.js introduced by a new update in the UI, which makes the Time field mandatory for indeces.

Screenshot

image image

Testing the changes

  1. Run yarn opensearch snapshot
  2. Run yarn start:enhancements --no-base-path
  3. Run yarn run cypress open and select sidebar_test_spec

Changelog

  • skip

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

AMoo-Miki and others added 19 commits November 25, 2024 22:43
…rkspace is deleted (opensearch-project#8900)

* feat: optimize recent items and filter out items whose workspace is deleted

Signed-off-by: tygao <[email protected]>

* Changeset file for PR opensearch-project#8900 created/updated

* seperate link

Signed-off-by: tygao <[email protected]>

* update filter sequence

Signed-off-by: tygao <[email protected]>

---------

Signed-off-by: tygao <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Fixes SQL monaco monarch tokens by separating the states for single quoted and double quoted strings so that both can appear properly

---------

Signed-off-by: Paul Sebastian <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…h-project#8886)

* Bump `@opensearch-project/opensearch` from 2.9.0 to 2.13.0

Signed-off-by: Miki <[email protected]>

* Changeset file for PR opensearch-project#8886 created/updated

---------

Signed-off-by: Miki <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…s link (opensearch-project#8919)

* page_references_insecure

Signed-off-by: Qxisylolo <[email protected]>

* typo

Signed-off-by: Qxisylolo <[email protected]>

* Changeset file for PR opensearch-project#8919 created/updated

* add https://numeraljs.com/ to lycheeignore

Signed-off-by: Qxisylolo <[email protected]>

* change https://numeraljs.com/ to http

Signed-off-by: Qxisylolo <[email protected]>

---------

Signed-off-by: Qxisylolo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…project#8920)

* support search dev tools by category name

Signed-off-by: Hailong Cui <[email protected]>

* Changeset file for PR opensearch-project#8920 created/updated

* address review comments

Signed-off-by: Hailong Cui <[email protected]>

---------

Signed-off-by: Hailong Cui <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…et (opensearch-project#8888)

* Isolate objects based on workspace when calling get/bulkGet

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#8888 created/updated

* add integration tests

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* optimize the function name

Signed-off-by: yubonluo <[email protected]>

* add data source validate

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
)

* replace default query with current query

Signed-off-by: Sean Li <[email protected]>

* Changeset file for PR opensearch-project#8930 created/updated

* adding unit tests

Signed-off-by: Sean Li <[email protected]>

---------

Signed-off-by: Sean Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…ts (opensearch-project#8739)

* Check if workspaces exists when creating saved objects

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#8739 created/updated

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* fix test error

Signed-off-by: yubonluo <[email protected]>

* optimize the code

Signed-off-by: yubonluo <[email protected]>

* fix test errors

Signed-off-by: yubonluo <[email protected]>

* add integration tests

Signed-off-by: yubonluo <[email protected]>

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Update Cypress to v12 (opensearch-project#8926)

* Update cypress to v12

Signed-off-by: Daniel Rowe <[email protected]>

* Add required e2e.js

Signed-off-by: Daniel Rowe <[email protected]>

* Changeset file for PR opensearch-project#8926 created/updated

* Update license header

Signed-off-by: Daniel Rowe <[email protected]>

* Update license in e2e.js

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

* fix: support imports without extensions in cypress webpack build (opensearch-project#8993)

* fix: support imports without extensions in cypress webpack build

Signed-off-by: Daniel Rowe <[email protected]>

* Changeset file for PR opensearch-project#8993 created/updated

* use typescript config

Signed-off-by: Daniel Rowe <[email protected]>

* fix lint

Signed-off-by: Daniel Rowe <[email protected]>

* disable new test isolation feature

This isolation was causing regressions

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…ensearch-project#8876)

* [Query enhancements] use status 503 if opensearch throws 500

Signed-off-by: Joshua Li <[email protected]>

* update unit tests

Signed-off-by: Joshua Li <[email protected]>

---------

Signed-off-by: Joshua Li <[email protected]>
…9003)

* clear the attribute of error objects

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#9003 created/updated

* Changeset file for PR opensearch-project#9003 deleted

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* bump url to 0.11.4

Signed-off-by: Joshua Li <[email protected]>

* Changeset file for PR opensearch-project#8611 created/updated

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…project#8935)

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
)

* Set default index pattern when workspace disabled

Signed-off-by: Lin Wang <[email protected]>

* Move saved objects first to avoid partial deleted

Signed-off-by: Lin Wang <[email protected]>

* Skip ui setting update for non workspace admin

Signed-off-by: Lin Wang <[email protected]>

* Add UT for sample_data_client

Signed-off-by: Lin Wang <[email protected]>

* Changeset file for PR opensearch-project#8842 created/updated

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…t button (opensearch-project#9014)

* fix: update the osd-plugin-generator template to reference the correct button

Signed-off-by: Justin Kim <[email protected]>

* remove the size prop

Signed-off-by: Justin Kim <[email protected]>

* change it to EuiButton

Signed-off-by: Justin Kim <[email protected]>

---------

Signed-off-by: Justin Kim <[email protected]>
…t type (opensearch-project#8932)

* Pass time filter if language overrides hideDatePicker

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
ArgusLi and others added 27 commits December 10, 2024 17:54
Reformat for TS.

Signed-off-by: Federico Silva <[email protected]>
* Update Cypress to v12 (opensearch-project#8926)

* Update cypress to v12

Signed-off-by: Daniel Rowe <[email protected]>

* Add required e2e.js

Signed-off-by: Daniel Rowe <[email protected]>

* Changeset file for PR opensearch-project#8926 created/updated

* Update license header

Signed-off-by: Daniel Rowe <[email protected]>

* Update license in e2e.js

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

* fix: support imports without extensions in cypress webpack build (opensearch-project#8993)

* fix: support imports without extensions in cypress webpack build

Signed-off-by: Daniel Rowe <[email protected]>

* Changeset file for PR opensearch-project#8993 created/updated

* use typescript config

Signed-off-by: Daniel Rowe <[email protected]>

* fix lint

Signed-off-by: Daniel Rowe <[email protected]>

* disable new test isolation feature

This isolation was causing regressions

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
…ensearch-project#8876)

* [Query enhancements] use status 503 if opensearch throws 500

Signed-off-by: Joshua Li <[email protected]>

* update unit tests

Signed-off-by: Joshua Li <[email protected]>

---------

Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Refactor to match OSD-functional-tests-layout.

Signed-off-by: Federico Silva <[email protected]>
…9003)

* clear the attribute of error objects

Signed-off-by: yubonluo <[email protected]>

* Changeset file for PR opensearch-project#9003 created/updated

* Changeset file for PR opensearch-project#9003 deleted

---------

Signed-off-by: yubonluo <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
* bump url to 0.11.4

Signed-off-by: Joshua Li <[email protected]>

* Changeset file for PR opensearch-project#8611 created/updated

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
Change testIsolation to be false, ignore uncaught errors to be more selective.

Signed-off-by: Federico Silva <[email protected]>
…project#8935)

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
Search bar objects that are non-page specific have been kept as commands.

Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
)

* Set default index pattern when workspace disabled

Signed-off-by: Lin Wang <[email protected]>

* Move saved objects first to avoid partial deleted

Signed-off-by: Lin Wang <[email protected]>

* Skip ui setting update for non workspace admin

Signed-off-by: Lin Wang <[email protected]>

* Add UT for sample_data_client

Signed-off-by: Lin Wang <[email protected]>

* Changeset file for PR opensearch-project#8842 created/updated

---------

Signed-off-by: Lin Wang <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
…t button (opensearch-project#9014)

* fix: update the osd-plugin-generator template to reference the correct button

Signed-off-by: Justin Kim <[email protected]>

* remove the size prop

Signed-off-by: Justin Kim <[email protected]>

* change it to EuiButton

Signed-off-by: Justin Kim <[email protected]>

---------

Signed-off-by: Justin Kim <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
…t type (opensearch-project#8932)

* Pass time filter if language overrides hideDatePicker

---------

Signed-off-by: Joshua Li <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
…nsearch-project#8993)

* fix: support imports without extensions in cypress webpack build

Signed-off-by: Daniel Rowe <[email protected]>

* Changeset file for PR opensearch-project#8993 created/updated

* use typescript config

Signed-off-by: Daniel Rowe <[email protected]>

* fix lint

Signed-off-by: Daniel Rowe <[email protected]>

* disable new test isolation feature

This isolation was causing regressions

Signed-off-by: Daniel Rowe <[email protected]>

---------

Signed-off-by: Daniel Rowe <[email protected]>
Signed-off-by: Daniel Rowe <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.